#!/bin/sh

TOMCAT_NAME='tomcat'

MONITER_NAME='monitorTomcat.sh'

time=`date +%F--%T`

#remote_host=172.18.13.101

remote_host=$1

remote_pwd=I23b8qbjjq

remote_path=/szcg/tool/updateRemote/

src_user=root

src_path=/szcg/tool/updateRemote/*



ssh root@${remote_host}  << remotessh

rm -rf /szcg/tool/updateRemote
mkdir /szcg/tool/updateRemote


exit
remotessh

echo '复制更新文件到服务器'$remote_host


scp -r $src_path root@${remote_host}:${remote_path}

echo '开始远程启动' 



